package com.gameShare.enums.misc

import com.gameShare.enums.gameInfo.GameInfoOrderEnum

enum class OrderType(val code : Int,val type : String) {
    ASC(0, "ASC"),
    DEC(1, "DEC");

    companion object {
        fun getByCode(code: Int): GameInfoOrderEnum? {
            return GameInfoOrderEnum.entries.find { it.code == code}
        }
    }
}